home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
pctyp2_c.arc
/
PCTDOC1.EXE
/
lha
/
CHAP14.TXT
< prev
next >
Wrap
Text File
|
1989-04-21
|
17KB
|
449 lines
subject: HIGHLIGHTING (Marking Areas)
overview: Highlighting is the process of marking the extremities
of an area of interest within a file you are editing.
Once an area has been highlighted, numerous operations
may be performed on the highlighted area with the
"Highlight Options" menu reached by pressing F8 or
"(A)rea options" of the Main Menu.
When you become adept with PC-Type II, you will probably
opt most of the time to highlight areas with the
keystrokes Ctrl L, Ctrl B, Ctrl S and Ctrl V.
However, all highlighting operations may be performed
from the "Highlight Marks" menu shown below. This
menu is displayed when you press F7 or select the
"(H)ighlight" option from the Main Menu.
┌─────────────────┐
│Highlight Marks: │ page
╞═════════════════╪═══════
│(B)lock mark │ 172
│(L)ine mark │ 173
│(M)ark sentence │ 174
│(P)aragraph │ 175
│(S)entence │ 176
│(W)ord │ 177
│(U)nmark area │ 178
│e(X)it │<-- Exit Highlight Marks menu
└─────────────────┘
In the discussion which follows, each of these options
in the menu will be described.
There are three distinct highlight types:
(1) Line (Ctrl L)
(2) Block (Ctrl B)
(3) Sentence (Ctrl S)
In practice, you usually invoke a highlight type twice
to mark the extremities of the area of interest. When
the first highlight is selected, the letter L, B, or S
will flash in the upper left corner of your screen.
The flashing indicates that the area of interest may
not be fully defined. The second time the keystroke
is pressed, the flashing will stop. The letter will
remain visible until an operation is performed on the
area or the highlighting is turned off.
You may correct the definition of the area of interest
by pressing a highlighting keystroke more than twice,
and you may change the type of highlighting by
pressing a different highlighting keystroke without
removing the highlighting and starting over.
167
(B)lock mark: Block highlighting is column oriented. Selecting
this option (or pressing Ctrl B) in the text area will
highlight the character under the cursor and a B will
flash in the upper left corner of your screen. You
could, at this point, operate on the character by
moving it, copying it, deleting it, etc.
By moving the cursor to another point in the file
and selecting this option again, a rectangle with the
two points as the opposite corners of a rectangle will
be highlighted. The B will still be present in the
corner of your screen, but it will no longer be
flashing. In this manner you can mark any rectangular
area in the file. This rectangle may now be operated
upon.
If an area in the same file was already highlighted,
a corner of the rectangle from the earlier marking
will be used and the current cursor position will make
the opposite corner.
If an area in a different file was already marked, it
is "unhighlighted" and your current request is
honored.
example:░111111 11111 11111 11111
░22x222 22222 22222 22222
░333333 33333 33333 33333
░444444 44444 44444 44444
░555555 55555 55555 55555
If the cursor was on the third character of the second
line of the above paragraph and this highlighting
option was selected for the first time, then that
character would be highlighted (represented by the
'x').
Moving the cursor to the tenth character on the fifth
line and selecting the highlighting option again would
result in:
░ ┌────────┐
░11│1111 111│11 11111 11111
░22│2222 222│22 22222 22222
░33│3333 333│33 33333 33333
░44│4444 444│44 44444 44444
░55│5555 555│55 55555 55555
░ └────────┘
168
(L)ine mark: Line (or paragraph) highlighting is line oriented.
Selecting this option, (or pressing Ctrl L), the
entire line under the cursor will be highlighted and
an L will flash in the upper left corner of your
screen. You could at this point operate on the line
by moving it, copying it, deleting it, etc.
By moving the cursor to another line and selecting
this option again, all the lines between and including
the two lines will be highlighted. The L will still
be present in the corner of your screen, but it will
no longer be flashing. In this manner you can mark an
entire paragraph, page, entire file, etc. This whole
area can now be operated upon.
If an area in the same file was already highlighted,
the entire area from the earlier marking to the
current line will be switched to line highlighting.
If an area in a different file was already marked, the
previous highlighting is removed and the current
request is honored.
example:░ 111111 11111 11111 11111
░ 222222 22222 22222 22222
░ 333333 33333 33333 33333
░ 444444 44444 44444 44444
░ 555555 55555 55555 55555
If the cursor was on the second line of the above
paragraph and this highlighting option was selected
for the first time the following would result:
░ 111111 11111 11111 11111
░┌────────────────────────────┐
░│ 222222 22222 22222 22222 │
░└────────────────────────────┘
░ 333333 33333 33333 33333
░ 444444 44444 44444 44444
░ 555555 55555 55555 55555
Moving the cursor to the fourth line and selecting the
highlighting option again would result in:
░ 111111 11111 11111 11111
░┌────────────────────────────┐
░│ 222222 22222 22222 22222 │
░│ 333333 33333 33333 33333 │
░│ 444444 44444 44444 44444 │
░└────────────────────────────┘
░ 555555 55555 55555 55555
169
(M)ark sentence: Sentence highlighting is sentence oriented.
Selecting this option (or pressing Ctrl S) will
highlight the character under the cursor and an S will
flash in the upper left corner of your screen. You
could, at this point, operate on the character by
moving it, copying it, deleting it, etc.
By moving the cursor to another point in the file
and selecting this option again, you define an area of
interest containing all the text between and including
the two points marked. The S will still be present in
the corner of your screen, but it will no longer be
flashing. In this manner you can mark any sentence
(or group of sentences) in the file. This text area
may now be operated upon.
If an area in the same file was already highlighted,
the beginning or ending point of the new marking will
be taken from the earlier marking and the current
cursor position will be used for the other point.
If an area in a different file was already marked, it
is "unhighlighted" and your current request is
honored.
example:░ 111111 11111 11111 11111
░ 22x222 22222 22222 22222
░ 333333 33333 33333 33333
░ 444444 44444 44444 44444
░ 555555 55555 55555 55555
If the cursor was on the third character of the second
line of the above paragraph and this highlighting
option was selected for the first time, then that
character would be highlighted (represented by the
'x').
Moving the cursor to the tenth character on the fourth
line and selecting the highlighting option again would
result in:
░ 111111 11111 11111 11111
░ ┌────────────────────────┐
░ 2│2222 22222 22222 22222 │
░┌───┘ │
░│ 333333 33333 33333 33333 │
░│ ┌───────────────┘
░│ 444444 444│4 44444 44444
░└────────────┘
░ 555555 55555 55555 55555
170
(P)aragraph: This option is only available within the "Highlight
Marks" menu. Selecting this option highlights the
paragraph in which the cursor is located. If the
cursor is not within a paragraph, an error message
is given. If highlighting already existed, it will be
removed in deference to the new request. An L will
appear in the top left corner of your screen to
indicate that "line" highlighting is active.
In this context, a paragraph is defined as a group of
text lines with no intervening blank or Special Lines
(e.g., a page marker or a "header off" line).
PC-Type II will start at the current line and move toward
the beginning of the file until a blank or Special
Line is encountered. Then it will move toward the end
of the file until another blank or Special Line is
found. It will then highlight all the lines between
these two points. If the cursor is on a blank or
Special Line, then an error message is displayed.
example: Suppose the cursor is on the X of the text shown
below at the left. When this option is selected, the
resulting highlighting would be as shown below on the
right.
░aaaaaaaaa aaaaaaaaa
░ ┌─────────────────┐
░bbbbbbbbb │ bbbbbbbbb │
░ccccXcccc │ ccccXcccc │
░ddddddddd │ ddddddddd │
░ └─────────────────┘
░eeeeeeeee eeeeeeeee
171
(S)entence: This option is only available within the "Highlight
Marks" menu. Selecting this option highlights the
"sentence" in which the cursor is located. If the
cursor is not within a text area, an error message
is given. If highlighting already existed, it will be
removed in deference to the new request. An S will
appear in the top left corner of your screen to
indicate that "sentence" highlighting is active.
To determine the beginning of a "sentence", PC-Type II
starts at the cursor location and moves toward the
beginning of the file until a blank or Special Line,
or period, question mark, or exclamation point
(followed by at least one space) is discovered. It
then moves forward until the first non-blank character
is found.
To find the end of a "sentence", it moves toward the
end of the file until a blank or Special Line, or
period, question mark, or exclamation point (followed
by at least one space) is found. It then backs up
until the last non-blank character is found. Finally
it moves forward again one space.
The area between these two points is then highlighted.
example: Suppose the cursor is on the X of the text shown
below at the left. When the sentence option is
selected, the resulting highlighting would be as shown
below on the right.
░Aaa bbbb ccc ddd Aaa bbbb ccc ddd
░eee fffff. Ggg ┌───────┐
░hhhh Xi jjjj. Kkk eee fffff. │Ggg │
░lll mmmm nnnn ooooo ┌─────────────┘ ┌────┘
░ppp. │ hhhh Xi jjjj. │Kkk
░ └────────────────┘
░ lll mmmm nnnn ooooo
░ ppp.
172
(W)ord: Word highlighting is a special case of the "(M)ark
sentence" highlighting. When you select this option,
the word under the cursor and one space beyond the end
of the word will be highlighted. The extra space is
highlighted since copying, moving, or deleting a word
would normally entail handling the space between words
as well.
The cursor must be on top of a non-space character in
a text line, or an error message will be displayed.
This option is equivalent to pressing Ctrl V outside
the menus.
If highlighting already existed, it will be removed in
deference to the new request. An S will appear in the
top left corner of your screen to indicate that
"sentence" highlighting is active.
If the cursor was on the word highlighting in this sentence,
the result would be:
░ ┌─────────────┐
░.... on the word │highlighting │in this ..
░ └─────────────┘
This is equivalent to selecting the "(M)ark sentence"
option (or Ctrl S) twice - once with the cursor on the
"h" and once with the cursor on the space after the
final "g" in the word.
173
(U)nmark area: Selecting this option (or pressing Ctrl U) turns the
highlighting off regardless of where the highlighting
is located. When this is done, the L, B, or S which
appeared in the upper left corner of your screen will
disappear.
Most operations, with the exception of COPY, will
automatically remove the highlighting after they are
executed. COPY does not since you may want to copy an
area a number of times.
174